
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Scanner;


public class test extends Thread {
    static String s = "hello";

    public void test() {

    }

    @Override
    public void run() {
        super.run();
    }

    public static void main(String[] args) {
        new test();
        System.out.print(s);
    }
}


class DateFormat {
    public static void fun() {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
        String newDate;
        try {
            newDate = sdf.format(new SimpleDateFormat("yyyyMMdd").parse("20121115"));
            System.out.println(newDate);
        } catch (ParseException e) {
            e.printStackTrace();
        }
    }

    public static void main(String args[]) {
        fun();
    }
}

class Multiply {
    public static int multiply(int num) {
        if (num < 0) {
            System.out.println("请输入大于0的数！");
            return -1;
        } else if (num == 0 || num == 1) {
            return 1;
        } else {
            return multiply(num - 1) * num;
        }
    }

    public static void main(String[] args) {
        System.out.println(multiply(5));
    }
}


class jiecheng {

    public static int momo(int num) {
        if (num < 0) {
            return -1;
        } else if (num == 0 || num == 1) {
            return 1;
        } else {
            return momo(num - 1) * num;
        }
    }

    public static void main(String[] args) {
        System.out.print(momo(10));
    }
}

class Sort {
    public static void sort() {
        Scanner input = new Scanner(System.in);
        int sort[] = new int[10];
        int temp;
        System.out.println("请输入10个排序的数据：");
        for (int i = 0; i < sort.length; i++) {
            sort[i] = input.nextInt();
        }
        for (int i = 0; i < sort.length - 1; i++) {
            for (int j = 0; j < sort.length - i - 1; j++) {
                if (sort[j] < sort[j + 1]) {
                    temp = sort[j];
                    sort[j] = sort[j + 1];
                    sort[j + 1] = temp;
                }
            }
        }
        System.out.println("排列后的顺序为：");
        for (int i = 0; i < sort.length; i++) {
            System.out.print(sort[i] + "   ");
        }
    }

    public static void main(String[] args) {
        sort();
    }
}